﻿using Dispatcher.Core.Mail.Models;
using MiniFox.Components;
using System.Net.Mail;

namespace Dispatcher.Core.Mail
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister]
    public interface IMailProvider
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="messageId"></param>
        /// <param name="request"></param>
        /// <param name="message"></param>
        /// <param name="enableAsync"></param>
        /// <param name="cancelled"></param>
        void SentLog(string messageId, MailSendRequest request, MailMessage message, bool enableAsync, bool cancelled);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="messageId"></param>
        /// <param name="request"></param>
        /// <param name="message"></param>
        /// <param name="enableAsync"></param>
        /// <param name="exception"></param>
        void FailLog(string messageId, MailSendRequest request, MailMessage message, bool enableAsync, Exception exception);
        
    }
}
